package com.hq.service;

import com.hq.bean.DD;
import com.hq.bean.User;
import com.hq.bean.Wuliao;
import com.hq.dao.Dandao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DDSerivceImpl implements DDSerivce {
    @Resource
    Dandao dandao;

    @Override
    public int login(User user) {
        return dandao.login(user);
    }

    @Override
    public List list(String createdatex,
                     String createdated,
                     String pic,
                     String zzname,
                     String shenhe,
                     String typezx,
                     String typezd,
                     String typecx,
                     String typecd,
                     String ordername) {
        return dandao.list(createdatex,
                createdated,
                pic,
                zzname,
                shenhe,
                typezx,
                typezd,
                typecx,
                typecd,
                ordername);
    }

    @Override
    public int listsnow(String snowid) {
        return dandao.listsnow(snowid);
    }

    @Override
    public void addsnow(String wuliao) {
        dandao.addsnow(wuliao);
    }

    @Override
    public int addwl(Wuliao wuliao) {
        return dandao.addwl(wuliao);
    }

    @Override
    public List findallwl(String wuliao) {
        return dandao.findallwl(wuliao);
    }

    @Override
    public int delwl(String wuliao, String wuliaoname) {
        return dandao.delwl(wuliao,wuliaoname);
    }

    @Override
    public int addan(DD dd) {
        return dandao.addan(dd);
    }
}
